package com.wjj.happytime.my_interface;

import com.wjj.happytime.entity.happy_entity.Entity;

import com.wjj.happytime.entity.listen_entity.ListenHomePage;
import com.wjj.happytime.entity.listen_entity.ListenProvince;
import com.wjj.happytime.entity.listen_entity.ListenRadios;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * created by Wang_JunJie at 2017/1/13
 */
public interface HttpService {

    //笑 模块的接口
    @GET("http://m2.qiushibaike.com/article/list/{type}")
    Call<Entity> getItems(@Path("type") String type, @Query("page") int page, @Query("count") int count);

    //本地http://live.ximalaya.com/live-web/v1/getRadiosListByType?pageNum=1&pageSize=20&provinceCode=370000&radioType=2
    //国家http://live.ximalaya.com/live-web/v1/getRadiosListByType?pageNum=1&pageSize=20&radioType=1
    //网络http://live.ximalaya.com/live-web/v1/getRadiosListByType?pageNum=1&pageSize=20&radioType=3

    //http://live.ximalaya.com/live-web/v4/homepage
    @GET("http://live.ximalaya.com/live-web/v4/homepage")
    Call<ListenHomePage> getListenHomePageData();

    //听 模块的主接口
    @GET("http://live.ximalaya.com/live-web/v1/getRadiosListByType")
    Call<ListenRadios> getRadioData(@Query("pageNum") int pageNum,@Query("pageSize") int pageSize,@Query("provinceCode") int provinceCode,@Query("radioType") int radioType);

    //省市（代码和i名字）http://live.ximalaya.com/live-web/v1/getProvinceList
    //这个是北京市电台
    //                  http://live.ximalaya.com/live-web/v1/getRadiosListByType?pageNum=1&pageSize=20&provinceCode=110000&radioType=2
    //这个是天津市电台
    //                  http://live.ximalaya.com/live-web/v1/getRadiosListByType?pageNum=1&pageSize=20&provinceCode=120000&radioType=2

    //获取省市数据
    @GET("http://live.ximalaya.com/live-web/v1/getProvinceList")
    Call<ListenProvince> getProvinceData();

}
